#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'kang'


i = 0
sum = 0
while i < 100:
    sum += i
    i += 1
    if sum > 2000:
        break

print(sum)


for i in range(1,100):
    if i % 2 == 1:
        continue
    print(i, end=" ,")